package com.ming.closeto.utils;

import com.ming.closeto.model.FileBrowseModel;

import java.util.Comparator;

public class CompareUtils implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        FileBrowseModel model1 = (FileBrowseModel) o1;
        FileBrowseModel model2 = (FileBrowseModel) o2;
        // 标准的 0-9 a-z 的排序
        return model1.getTitle().compareTo(model2.getTitle());
    }
}
